export const state={
    //初始化用户信息
    userInfo:sessionStorage.getItem("userInfo")?JSON.parse(sessionStorage.getItem("userInfo")):{}
}
export const getters={
    //导出用户信息
    userInfo(state){
        return state.userInfo;
    }
}
export const mutations={
     //修改userInfo
     changeUserInfo(state,userInfo){
        state.userInfo=userInfo;
     }
}